package com.df.script;

import java.util.concurrent.ConcurrentHashMap;

public abstract class AbstractScriptManager implements IScriptManager {


    protected ConcurrentHashMap<Integer, IScript> scripts = new ConcurrentHashMap<>();

    public AbstractScriptManager() {
        loadScripts();
    }


    public abstract void loadScripts();

    @Override
    public IScript getScript(Integer scriptId) {
        return scripts.get(scriptId);
    }
}
